package com.rookie.opcua.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import org.eclipse.milo.opcua.stack.core.types.builtin.DateTime;
import org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass;

import java.sql.Timestamp;
import java.util.Date;

/**
 * entity
 *
 * @author yugo
 * 2019-07-03
 */
@Data
@ToString(callSuper = true)
@TableName("data_simulation")
public class DataSimulation {

    /**
     * id
     */
    @TableField("id")
    private Long id;

    /**
     * 命名空间下标
     */
    @TableField("namespace_index")
    private Integer namespaceIndex;

    /**
     * 数据名称
     */
    @TableField("name")
    private String name;
    /**
     * 数据值
     */
    @TableField("value")
    private String value;

    /**
     * 时间戳
     */
    @TableField("timestamp")
    private Date timestamp;
}
